package com.huiyi.shopping_order.mapper;

import java.util.List;
import com.huiyi.shopping_order.domain.ShoppingOrder;

/**
 * 购物订单Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-28
 */
public interface ShoppingOrderMapper 
{
    /**
     * 查询购物订单
     * 
     * @param id 购物订单主键
     * @return 购物订单
     */
    public ShoppingOrder selectShoppingOrderById(Long id);

    /**
     * 查询购物订单列表
     * 
     * @param shoppingOrder 购物订单
     * @return 购物订单集合
     */
    public List<ShoppingOrder> selectShoppingOrderList(ShoppingOrder shoppingOrder);

    /**
     * 新增购物订单
     * 
     * @param shoppingOrder 购物订单
     * @return 结果
     */
    public int insertShoppingOrder(ShoppingOrder shoppingOrder);

    /**
     * 修改购物订单
     * 
     * @param shoppingOrder 购物订单
     * @return 结果
     */
    public int updateShoppingOrder(ShoppingOrder shoppingOrder);

    /**
     * 删除购物订单
     * 
     * @param id 购物订单主键
     * @return 结果
     */
    public int deleteShoppingOrderById(Long id);

    /**
     * 批量删除购物订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShoppingOrderByIds(Long[] ids);
}
